package com.googlecode.compliancechecker;

/**
 * Basic reference to a type.
 * 
 * @author Marc-Christian Schulze
 * 
 */
public class TypeReference {

	private int		line;
	private String	typeName;

	public TypeReference(int line, String className) {
		this.line = line;
		this.typeName = className;
	}

	/**
	 * Returns the line number at which the reference was detected in the source
	 * file.
	 * 
	 * @return
	 */
	public int getLine() {
		return line;
	}

	public String getTypeName() {
		return typeName;
	}

	@Override
	public String toString() {
		return "TypeReference[typeName='" + getTypeName() + "']";
	}
}
